import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'

import 'normalize.css'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);

import VueQuillEditor from 'vue-quill-editor'



import Moment from "moment";

Vue.filter('DateTime',function (v){
    const dt = Moment(v*1000).format("YYYY-MM-DD日 HH:mm:ss")
    return dt;
})
  
  // 定义权限等级全局过滤器
 Vue.filter('rank',function (v){
  
    let result;
  
    switch(v){
      case '0' :result = '一级'; break;
      case '1' :result = '二级'; break;
      case '2' :result = '三级'; break;
  
      default : result = '暂未分级'
    }
  
    return result
  })

import 'quill/dist/quill.core.css'

import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

Vue.use(VueQuillEditor)


Vue.config.productionTip = false



new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
